package object;

/**
 * @TODO 5. 找出下个月的倒数第3天是哪天
 * @Author xu
 * 2025/3/10
 */
import java.time.LocalDate;
public class LocalDate05 {
    public static void main(String[] args) {
        LocalDate today = LocalDate.now();
        LocalDate lastThirdDayNextMonth = today.plusMonths(1).withDayOfMonth(today.plusMonths(1).lengthOfMonth() - 2);

        System.out.println("下个月的倒数第3天是: " + lastThirdDayNextMonth);
    }
}
